package com.aat.dxfy.spring.aop;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class AopTest {
	private static ConfigurableApplicationContext context;

	public static void main(String[] args) {
		context = new ClassPathXmlApplicationContext("com/aat/dxfy/spring/aop/spring-context.xml");
		// start
		UserService  userService=context.getBean(UserService.class);
		userService.say("张三");
		userService.sing("李四");
		// end
		context.close();
	}
}
